#ifndef CToolTipControlEx_H_
#define CToolTipControlEx_H_

#include "afxcmn.h"
/////////////////////////////////////////////Define Tip
// CTipWindow window
class UMYWINDOW9_API CToolTipControlEx : public CToolTipCtrl
{
	DECLARE_DYNAMIC(CToolTipControlEx)
// Construction
public:
	CToolTipControlEx();

// Attributes
private:
	CWnd	* m_pWnd;
public:
	BOOL	m_Activate;
	BOOL    m_NeedZoom;
// Operations
public:
	void Activate( BOOL bActivate );
	BOOL IsActive();
	void TrackPosition(int xPos, int yPos);
	void TrackPosition(LPPOINT lppt);
	void TrackActivate(BOOL bActivate, LPTOOLINFO lpti);
	int  SetMaxTipWidth(int nWidth);
	RECT SetMargin(LPRECT lpRect);
	int  GetMaxTipWidth();
	void GetMargin(LPRECT lpRect);
	int  GetDelayTime(DWORD dwType);
	int  SetDelayTime(DWORD dwType, int nTime);
	COLORREF GetTextColor();
	COLORREF GetBkColor();
	COLORREF SetTextColor(COLORREF crColor);
	COLORREF SetBkColor(COLORREF crColor);
	void DeleteTooltip(CWnd* pWnd,UINT_PTR nIDTool,int nNum=50);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CToolTipControlEx)
	//}}AFX_VIRTUAL

// Implementation
public:
	CToolTipControlEx(CWnd *pParent);
	virtual ~CToolTipControlEx();

	// Generated message map functions
protected:
	//{{AFX_MSG(CToolTipControlEx)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

#endif